export default {
  data () {
    return {
      rightsData: []
    }
  },
  async created () {
    try {
      const res = await this.$axios.get(`rights/list`)
      this.rightsData = res.data.data
    } catch (error) {
      console.log('获取权限列表失败')
    }
  },
  methods: {
    indexMethod (index) {
      return index
    }
  }
}
